# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        黄周云  
# Name:         test06
# Description:  例9.6
# Author:       ASUS
# Date:         2019/3/12
#-------------------------------------------------------------------------------


while True:
    try:
        x = int(input('请输入分子：'))
        y = int(input('请输入分母：'))
        value = x/y
        print('x/y is',value)
    except Exception as e:
        print('不正确输入：',e)
        print('请重新输入')
    # 在try和except之间的代码正常执行后才执行
    else:
        break



